from rest_framework.viewsets import ModelViewSet

from apps.contents.models import GoodsChannel
from apps.meiduo_admin.serializers.channel import GoodsChannelSerializer
from apps.meiduo_admin.utils import PageNum


class GoodsChannelView(ModelViewSet):
    """
    频道管理
    """
    serializer_class = GoodsChannelSerializer
    queryset = GoodsChannel.objects.all()
    pagination_class = PageNum


